package com.ie.mapper.admin;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ie.entity.admin.GoodsEntity;
import com.ie.entity.before.FocusEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface GoodsMapper extends BaseMapper<GoodsEntity> {
    IPage<GoodsEntity> iPageGoods(IPage<GoodsEntity> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<GoodsEntity> wrapper);
    List<Map<String, Object>> myCartGoods(int uid);
    IPage<GoodsEntity> ipageGoods(IPage<GoodsEntity> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<GoodsEntity> wrapper);
    //IPage<GoodsEntity> ipageMyFocusGoods(IPage<GoodsEntity> igae, LambdaQueryWrapper<FocusEntity> lambdaQueryWrapper);
    IPage<GoodsEntity> iPageMyFocusGoods(IPage<GoodsEntity> iPage, LambdaQueryWrapper<FocusEntity> queryWrapper);
}